package com.mingqijia.gassafety.authority.api.resp.company;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.mingqijia.gassafety.shared.enums.ManagerType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 企业简短信息
 * @author Damon S.
 * @version v0.2
 * @date {YEAR}年{MONTH}月{DAY}日 {TIME}
 */
@Data
@ApiModel(value = "企业简短信息")
public class CompanyLiteRespDTO implements Serializable {
    @ApiModelProperty(value = "企业ID")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @JsonIgnore
    @ApiModelProperty(value = "简称")
    private String alias;

    @ApiModelProperty(value = "编码")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String code;

    @ApiModelProperty(value = "行政编码")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String adCode;

    @ApiModelProperty(value = "上级")
    private String parentId;

    @ApiModelProperty(value = "1-平台,3-企业")
    private Integer orgType;

    @ApiModelProperty(value = "下级企业")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CompanyLiteRespDTO> children;
}